@extends('layouts.console_header')

@section('title', '日志')

@section('resources')
    @parent
    <link rel="stylesheet" href="https://cache.amap.com/lbs/static/main1119.css"/>
	<style>
		.daily_record{margin: 20px 10px;}
		.daily_record .daily_record_all{margin-left: 25px;overflow: hidden;}
		.daily_record .daily_record_all div{font-size: 16px;color: #808080;overflow: hidden;float: left;width: 48%;}
		.daily_record .daily_record_all div p{margin: 10px 1%;overflow: hidden;}
		.daily_record .daily_record_all p span{float: left;}
		.daily_record .daily_record_all p span:nth-child(2){width: 460px;}
		.daily_record_title{margin: 10px 0;padding: 5px 20px;background-color: #eee;font-size: 20px;}
	</style>
@endsection

@section('content')
<section class="user_list">
	<div style="border-bottom: 2px solid #9955c6;overflow: hidden;">
		<p class="fz_14 account_title fl" style="border: none;">
		<span style="color: #7f7f7f;">
		    <a href="/console/index">首页></a>
		    商家版运营>
		    <a href="/console/shop/status/list?cityid={{$cityid}}">商家状态列表></a>
        </span>
        <span class="co_violet">日志</span></p>
		<a onclick="history.go(-1);" href="#"><p class="fr tc back_btn">返回</p></a>
	</div>
	<div style="font-size: 22px;text-align: center;margin: 10px 0;"> {{$shopname}}  ({{$shopcode}})</div>
	<ul class="daily_record">
	@if(count($lists) < 1)
		<li style="text-align: center;">
			<img src="{{env('IMAGE_DOMAIN')}}/images/console/daily_no_count.jpg" alt="">
		</li>
	@else
        @foreach($lists as $list)
            <li>
                <h2 class="daily_record_title">操作时间：{{date('Y-m-d H:i', strtotime($list['created_at']))}}</h2>
                <div class="daily_record_all">
                    <div>
                        <p>
                            <span>操作人：</span>
                            <span>{{$list['operator']}}</span>
                        </p>
                        <p>
                            <span>修改理由：</span>
                            <span>{{$list['reason']}}</span>
                        </p>
                        <p>
                            <span>维护人：</span>
                            <span>{{$list['realname']}}</span>
                        </p>
                    </div>
                    <div>
                        <p>
                            <span>类型：</span>
                            @if($list['type'] == 'new')
                                <span>首次上线</span>
                            @elseif($list['type'] == 'downshelf')
                                <span>下架</span>
                            @elseif($list['type'] == 'upshelf')
                                <span>上架</span>
                            @elseif($list['type'] == 'cancel_doubleday')
                                <span>取消今天翻倍日</span>
                            @elseif($list['type'] == 'open_doubleday')
                                <span>开通今天翻倍日</span>
                            @elseif($list['type'] == 'customer_check_pass')
                                <span>客服审核通过</span>
                            @elseif($list['type'] == 'update_shop')
                                <span>修改商家信息</span>
                            @elseif($list['type'] == 'update_shop_maintainer')
                                <span>修改维护人</span>
                            @elseif($list['type'] == 'update_shop_oldmaintainer')
                                <span>修改原系统维护人</span>
                            @elseif($list['type'] == 'update_shop_mobile')
                                <span>修改商家登录账号</span>
                            @elseif($list['type'] == 'update_shop_contract')
                                <span>修改商家续约</span>
                            @elseif($list['type'] == 'update_shop_account')
                                <span>修改商家收款账号</span>
                            @elseif($list['type'] == 'shop_set_doublecalendar')
                                <span>(商家)修改商家翻贝日期</span>
                            @elseif($list['type'] == 'update_shop_grade')
                                <span>(商家)修改商家级别</span>
                            @else
                                <span>其他</span>
                            @endif
                        </p>
                        <p>
                            <span>操作备注：</span>
                            <span>{{$list['remark']}}</span>
                        </p>
                    </div>
                </div>
            </li>
        @endforeach
    @endif
	</ul>
</section>
@endsection

@section('scriptResources')
    @parent
    <script type="text/javascript" src="https://webapi.amap.com/maps?v=1.3&key=a9fe1b184bacd00ecd70365903024419&plugin=AMap.Autocomplete"></script>
    <script type="text/javascript" src="https://cache.amap.com/lbs/static/addToolbar.js"></script>
<script>
    
</script>
@endsection